package com.dailyblue.java.standard.design.代理模式.静态代理;

import com.dailyblue.java.standard.design.代理模式.Boss;
import com.dailyblue.java.standard.design.代理模式.Treat;

// 秘书类，代理类 负责代理老板
public class Secretary implements Treat {

    private Boss boss;

    public Secretary(Boss boss) {
        this.boss = boss;
    }

    @Override
    public void treat() {
        System.out.println("我是秘书，大家吃好喝好");
        boss.treat();
        System.out.println("随意");
    }
}
